package com.crane.common.framework.jwt;

import java.util.Random;


/**
 * @Author: zhenxing.pi
 * @Date: 2020/7/3 15:32
 */

public class JwtUserToken  {

    public static final String HEADER_USER = "Authorization";

    private String userId;

    private String randomKey;

    public JwtUserToken(){
    }

    public JwtUserToken(String userId){
        this.userId=userId;
        this.randomKey=String.format("%04d",new Random().nextInt(9999));
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getRandomKey() {
        return randomKey;
    }

    public void setRandomKey(String randomKey) {
        this.randomKey = randomKey;
    }

}
